]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Don't hide the tray for urgent notifications
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 20 May 2013 17:31:43 +0000 (13:31 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 20 May 2013 18:25:55 +0000 (14:25 -0400)
The tray should never close on its own, without the user's input.

https://bugzilla.gnome.org/show_bug.cgi?id=700639

js/ui/messageTray.js

index 635ee267750e557c8d705e9987359cf48c85c28e..147f8cf775f56bb5b95b9aa6493b46d67c593b2c 100644 (file)
@@ -2231,11 +2231,7 @@ const MessageTray = new Lang.Class({
                 this._ensureNotificationFocused();
         }
 
-        let notificationsVisible = this._notificationState != State.HIDDEN;
-        let notificationsDone = !notificationsVisible && !notificationsPending;
-
-        let mustHideTray = ((notificationsPending && notificationUrgent)
-                           || notificationsVisible || !Main.sessionMode.hasNotifications);
+        let mustHideTray = this._notificationState != State.HIDDEN || !Main.sessionMode.hasNotifications;
 
         // Summary notification
         let haveClickedSummaryItem = this._clickedSummaryItem != null;